package com.xbongbong.pro.weblist.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 签到保存数据
 *
 * @author GuoJun.HU
 * @since V1.0
 * @date 2019/4/12 13:44
 */
@Getter
@Setter
@ToString
public class SignInSaveDTO extends BaseDTO {
    private static final long serialVersionUID = -6664730958630704000L;

    @NotNull(message = "{dto.msg.signInSave.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.signInSave.menuId.NotNull}")
    private Long menuId;
    /**
     * 主键
     */
    private Long id;
    /**
     * 签到人名称
     */
    private String userName;
    /**
     * 客户id
     */
    private Long customerId;
    /**
     * 客户名称
     */
    private String customerName;
    /**
     * 国家
     */
    private String country;
    /**
     * 省
     */
    private String province;
    /**
     * 市
     */
    private String city;
    /**
     * 区或县
     */
    private String district;
    /**
     * 客户详细地址
     */
    private String address;
    /**
     * 经度
     */
    private Double longitude;
    /**
     * 纬度
     */
    private Double latitude;
    /**
     * 备注
     */
    private String memo;
    /**
     * 图片（多个）；["a.jpg","b.jpg"]
     */
    private String images;
    /**
     * 客户位置是否更新：0：没更新，1：更新
     */
    private Integer customerLocationUpdate;
    /**
     * 是否超出范围：0否，1是
     */
    private Integer isOutOfRange;
    /**
     * 创建时间
     */
    private Long addTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 删除标记
     */
    private Integer del;

    public SignInSaveDTO() {
        this.userName = "";
        this.customerName = "";
        this.country = "";
        this.province = "";
        this.city = "";
        this.district = "";
        this.address = "";
        this.memo = "";
        this.images = "[]";
        this.customerLocationUpdate = 0;
        this.isOutOfRange = 0;
        this.del = DelEnum.NORMAL.getDel();
    }
}
